package jie.pojo;

import java.util.List;

public class Page {

    private  int pageNo;
    private  int pageSize;
    private  int count;
    private  int pageCount;
    List<Record> list;

    public List<Record> getList() {
        return list;
    }

    public void setList(List<Record> list) {
        this.list = list;
    }

    public Page(int pageNo, int pageSize, int count) {
        this.pageNo = pageNo;
        this.pageSize = pageSize;
        this.count = count;
        this.pageCount = count%pageSize==0?count/pageSize:count/pageSize;
    }

    public int getPageNo() {
        return pageNo;
    }

    public void setPageNo(int pageNo) {
        this.pageNo = pageNo;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public int getPageCount() {
        return pageCount;
    }

    public void setPageCount(int pageCount) {
        this.pageCount = pageCount;
    }
}
